package model

import "github.com/jinzhu/gorm"

type Animal struct {
	gorm.Model
	Name string `gorm:"default:'galeone'"`
	Age  int64
}

//如果声明了这个函数，将会以返回值作为表名
func (Animal) TableName() string {
	return "animal"
}
